﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucHotelType.ascx.cs"
    Inherits="Indochinaodyssey.UserControl.Hotel.ucHotelType" %>
&nbsp;<asp:ObjectDataSource ID="odsHotel" runat="server" SelectMethod="TheLoai_getTheLoaiById"
    TypeName="IOBusiness.ClassLinq.clsLqTheLoai">
    <SelectParameters>
        <asp:QueryStringParameter Name="idTheLoai" QueryStringField="typeid" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:DataList ID="DataList1" runat="server" DataSourceID="odsHotel" Width="100%">
    <ItemTemplate>
        <table align="center" border="0" cellpadding="0" cellspacing="0" style="border-bottom: #1f9b23 2px solid;"
            width="95%">
            <tr>
                <td height="41">
                    <span class="title2">
                        <asp:Label ID="TenTheLoaiLabel" runat="server" Text='<%# Eval("TenTheLoai") %>' />
                    </span>
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="hlIdTheLoai" runat="server" Value='<%# Eval("ID") %>' />
        <asp:DataList ID="DataList2" runat="server" DataSourceID="odsHotelList" Width="100%">
            <ItemTemplate>
                <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tbody>
                        <tr>
                            <td colspan="2" valign="top" style="padding: 5px 5px 5px 5px;">
                                <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("TieuDe") %>' CssClass="link_title"
                                    NavigateUrl='<%# "~/Hotel.aspx?hotelid=" + Eval("ID") + "&catid=2" %>'></asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td width="107" valign="top" style="padding: 5px 5px 5px 5px;">
                                <asp:Image ID="Image1" runat="server" AlternateText='<%# Eval("TieuDe") %>' Height="80px"
                                    ImageUrl='<%# "~/Images/HinhAnh/" + Eval("HinhAnh") %>' ToolTip='<%# Eval("Summany") %>'
                                    Width="100px" />
                            </td>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <p class="MsoNormal" style="margin: 0in 0in 0pt" align="justify">
                                                    <span style="font-size: 10pt; font-family: Arial">
                                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("Summany") %>'></asp:Label></span></p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <div align="right">
                                                    <asp:HyperLink ID="HyperLink2" runat="server" CssClass="Details" NavigateUrl='<%# "~/hotel.aspx?hotelid=" + Eval("ID") + "&catid=2" %>'>Detail</asp:HyperLink>
                                                    |&nbsp;<a class="Details" href='book-this-tour.aspx?page=hotel&tourid=<%#Eval("id")%>&amp;name=<%#Eval("TieuDe") %>'>Book
                                                        now</a>
                                                </div>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </ItemTemplate>
        </asp:DataList>
        <asp:ObjectDataSource ID="odsHotelList" runat="server" SelectMethod="Tour_getByTheLoai"
            TypeName="IOBusiness.ClassLinq.clsLqTours">
            <SelectParameters>
                <asp:ControlParameter ControlID="hlIdTheLoai" Name="idTheLoai" PropertyName="Value"
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <br />
    </ItemTemplate>
</asp:DataList>
